package com.spa.application.config.massagist;

import com.spa.application.dto.common.rule.RuleDto;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * domain entity
 * 分润抽成规则表(ProfitRule) 领域实体类
 *
 * @author makejava
 * @since 2024-01-12 15:53:02
 */
@Data
public class ProfitRule {

    private Long id;

    /**
     * 订单id
     */
    private Long parentId;

    /**
     * 技师抽成
     */
    private Double massagistPercent;

    /**
     * 门店抽成
     */
    private Double shopPercent;

    /**
     * 平台抽成
     */
    private Double adminPercent;

    /**
     * 生效时间
     */
    private Date effTime;

    /**
     * 技师规则
     * 2024-03-30 lig add
     */
    private List<RuleDto> massagistRule;
    /**
     * 门店规则
     * 2024-03-30 lig add
     */
    private List<RuleDto> shopRule;

}
